package cc.rengu.redp.bizimpl.igas.controller;


import cc.rengu.redp.bizimpl.igas.domain.SignAcctInfo;
import cc.rengu.redp.bizimpl.igas.service.SignAcctInfoService;
import cc.rengu.redp.common.controller.BaseController;
import cc.rengu.redp.common.domain.QueryRequest;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Api(tags = "用户签约管理")
@RestController
@RequestMapping("/admin/igas/SignAcctInfo")
@Slf4j
public class SignAcctInfoController extends BaseController {

    @Autowired
    private SignAcctInfoService signAcctInfoService;



//    @RequiresPermissions("运维监控:用户签约管理")
    @GetMapping("/list")
    public Map<String, Object> list(QueryRequest request, SignAcctInfo entity) {
        return getDataTable(signAcctInfoService.findPageQuery(request, entity));
    }


//    @RequiresPermissions("用户签约管理:解约")
    @PostMapping("/rescind")
    public void rescind(QueryRequest request , SignAcctInfo entity) {
        signAcctInfoService.rescind(request,entity);
    }


}


